class MainController < ApplicationController

	layout 'standard'

	def index
		@prayers = Prayer.find(:all, :order => "id desc")
		# @prayers = Prayer.paginate :per_page => 100, :page => params[:page], :order => 'id desc' 
		if logged_in?
			@my_social_prayers = @signed_user.social_prayers.find(:all, :order => "collaborative_prayers.id desc")
			# @my_prayers = CollaborativePrayer.paginate_by_user_id @signed_user.id, :per_page => 100, :page => params[:page], :order => 'id desc'
		end

	end

end
